package cn.wolfcode.luowowo.article.service;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.article.query.DestinationQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDestinationService {
    PageInfo<Destination> query(DestinationQuery qo);

    List<Destination> getDestByDeep(Integer deep);

    void changeHotValue(int hot, Long id);

    List<Destination> getToasts(Long parentId);

    void setInfo(Long id,String info);

    void delete(Long id);

    Destination getById(Long id);

    List<Destination> list();

    Destination getProvince(Long id);

    Destination getCountry(Long id);

    Destination getByName(String name);

    List<Destination> getRandomList(List list,int count);

    /**
     * 根据省份Id查询城市级别的目的地集合
     * @param id
     * @return
     */
    List<Destination> getCitys(Long id);
}
